

from kubernetes import client, config
from functools import lru_cache
from setting import config
from common.welab_k8s import init_k8s
from common.welab_k8s.k8s_pod import K8sPod
from common.welab_k8s.k8s_node import K8sNode
from common.welab_k8s.k8s_deployment import K8sDeployment
from common.welab_k8s.k8s_statefulset import K8sStatefulset


def main():
    init_k8s()
    # k8s_pod = K8sPod()
    k8s_deployment = K8sDeployment()
    # k8s_node = K8sNode()
    # result = k8s_node.list_node()
    # k8s_statefulset = K8sStatefulset()
    # result = k8s_statefulset.list_namespaced_statefulset("monitoring")
    # k8s_pod.list_namespaced_pod("middleware")
    deployments_info = k8s_deployment.list_namespaced_deployment("monitoring")
    print(result)


if __name__ == "__main__":
    main()
